package org.linlinjava.litemall.web.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import io.swagger.annotations.ApiOperation;
import org.linlinjava.litemall.core.notify.NoticeHelper;
import org.linlinjava.litemall.db.domain.LitemallAccountBook;
import org.linlinjava.litemall.db.domain.LitemallAddress;
import org.linlinjava.litemall.db.domain.LitemallOrder;
import org.linlinjava.litemall.db.service.LitemallAccountBookService;
import org.linlinjava.litemall.db.service.LitemallAddressService;
import org.linlinjava.litemall.db.util.PageTools;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.alibaba.fastjson.JSON;

import java.util.List;

/**
 * 网络控制器网络套接字
 *
 * @author yliyun
 * @description：TODO
 * @date 2022/09/14
 */
@RestController
@RequestMapping("web/socket")
public class WebWebSocketController {
    /**
     * 注意助手
     */
    @Autowired
    private NoticeHelper noticeHelper;

    @Autowired
    private LitemallAddressService litemallAddressService;

    @ApiOperation("test")
    @GetMapping()
    public String test(){
        //PageHelper.startPage(1, 3);
        List<LitemallAddress> addresses = litemallAddressService.list(null);

        return addresses.toString();
    }


}
